
#include "ClassMate.h"
#include "ClassRoom.h"

ClassRoom::ClassRoom()
{

}

void ClassRoom::addClassMate(ClassMate* classMate)
{
	_classMates.append(classMate);
	classMate->setClassRoom(this);
	this->emit(Signal_Insert, classMate);
}

int ClassRoom::classMateCount() const
{
	return _classMates.size();
}
ClassMate* ClassRoom::classMate(int index)
{
	return _classMates(index);
}

void ClassRoom::clear()
{
	_classMates.clear();
}
